<template>
  <div id="chaPerData">
    <div class="title">修改个人信息</div>
    <form action="#">
      <ul>
        <li class="user-head">
          <p>头像</p>
          <component is="imgUpload"></component>
        </li>
        <li class="username">
          <p>用户名</p>
          <div><input type="text" placeholder="请输入你的昵称"></div>
        </li>
        <li class="sex">
          <p>性别</p>
          <div>
            <div class="female">
              <input type="radio" id="female" name="sex" />
              <label for="female">女</label>
            </div>
            <div class="male">
              <input type="radio" id="male" name="sex" />
              <label for="male">男</label>
            </div>
          </div>
        </li>
        <li class="age">
          <p>年龄</p>
          <div><input type="text" placeholder="请输入你的年龄"></div>
        </li>
      </ul>
    </form>
    <div class="school">
      <p></p>
      <template>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </template>
      <template>
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value">
          </el-option>
        </el-select>
      </template>
    </div>
    <div class="introduce">

    </div>
  </div>
</template>

<script>
  import imgUpload from './uploadImg'
  export default {
    name: 'chaPerData',
    props: {},
    data () {
      return {
        options: [{
          value: '选项1',
          label: '黄金糕'
        }, {
          value: '选项2',
          label: '双皮奶'
        }, {
          value: '选项3',
          label: '蚵仔煎'
        }, {
          value: '选项4',
          label: '龙须面'
        }, {
          value: '选项5',
          label: '北京烤鸭'
        }],
        value: ''
      }
    },
    mounted () {
    },
    components : {
      imgUpload : imgUpload
    }
  }
</script>

<style scoped>
  @import '../../../../personalCenter/try.css';
  #chaPerData {
    width: 600px;
    margin: 30px 50px;
  }
</style>
